package com.yige.common

/**
 * Created by sunhao on 2015/11/5 0005.
 */
class ArgsUtil {

    public static void checkArgs(Object arg){
        if (arg == null){
            throw new RuntimeException("参数不能为空");
        }
    }

    public static void checkArgs1(Object[] args){
        for(int i=0; i<args.length; i++){
            if (args[i] == null){
                throw new RuntimeException("参数不能为空");
            }
        }
    }
}
